package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 注册表
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpParty extends Model<JbdpParty> {

    private static final long serialVersionUID=1L;

    /**
     * 注册ID
     */
    @TableId("PARTY_ID")
    private String partyId;

    /**
     * 实体ID
     */
    @TableField("ENTITY_ID")
    private String entityId;

    /**
     * 实体类型
     */
    @TableField("ENTITY_TYPE")
    private String entityType;

    /**
     * 实体名称
     */
    @TableField("ENTITY_NAME")
    private String entityName;

    /**
     * 上级ID
     */
    @TableField("PARENT_ID")
    private String parentId;

    /**
     * 上级类型
     */
    @TableField("PARENT_TYPE")
    private String parentType;

    /**
     * 状态
     */
    @TableField("STATE")
    private Integer state;

    /**
     * 组织维度
     */
    @TableField("VIEW_TYPE")
    private String viewType;

    /**
     * 排序
     */
    @TableField("ORDER_NO")
    private Integer orderNo;


    public String getPartyId() {
        return partyId;
    }

    public JbdpParty setPartyId(String partyId) {
        this.partyId = partyId;
        return this;
    }

    public String getEntityId() {
        return entityId;
    }

    public JbdpParty setEntityId(String entityId) {
        this.entityId = entityId;
        return this;
    }

    public String getEntityType() {
        return entityType;
    }

    public JbdpParty setEntityType(String entityType) {
        this.entityType = entityType;
        return this;
    }

    public String getEntityName() {
        return entityName;
    }

    public JbdpParty setEntityName(String entityName) {
        this.entityName = entityName;
        return this;
    }

    public String getParentId() {
        return parentId;
    }

    public JbdpParty setParentId(String parentId) {
        this.parentId = parentId;
        return this;
    }

    public String getParentType() {
        return parentType;
    }

    public JbdpParty setParentType(String parentType) {
        this.parentType = parentType;
        return this;
    }

    public Integer getState() {
        return state;
    }

    public JbdpParty setState(Integer state) {
        this.state = state;
        return this;
    }

    public String getViewType() {
        return viewType;
    }

    public JbdpParty setViewType(String viewType) {
        this.viewType = viewType;
        return this;
    }

    public Integer getOrderNo() {
        return orderNo;
    }

    public JbdpParty setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.partyId;
    }

    @Override
    public String toString() {
        return "JbdpParty{" +
        "partyId=" + partyId +
        ", entityId=" + entityId +
        ", entityType=" + entityType +
        ", entityName=" + entityName +
        ", parentId=" + parentId +
        ", parentType=" + parentType +
        ", state=" + state +
        ", viewType=" + viewType +
        ", orderNo=" + orderNo +
        "}";
    }
}
